package com.example.custom.rpc.servlet;

import com.example.custom.rpc.handler.HttpServerHandler;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * @author liyuncong
 * @version 1.0
 * @file HttpDispatcherServlet
 * @brief HttpDispatcherServlet
 * @details HttpDispatcherServlet
 * @date 2022-11-02
 *
 * Edit History
 * ----------------------------------------------------------------------------
 * DATE                     NAME               DESCRIPTION
 * 2022-11-02               liyuncong          Created
 */
public class HttpDispatcherServlet extends HttpServlet {

    @Override
    protected void service(
        HttpServletRequest req, HttpServletResponse resp
    ) throws ServletException, IOException {
        new HttpServerHandler().handler(req, resp);
    }
}

